package com.czr.dao.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.io.Serializable;

/**
 * <p>
 * 回答表
 * </p>
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("czr_huida")
@ApiModel(value="czr_huida对象", description="回答主表")
public class CzrAnswers extends Model<CzrAnswers> {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    @TableId(value = "id", type = IdType.AUTO)
    private Long id;



    @ApiModelProperty(value = "问题id")
    @TableField("question_id")
    private Long questionId;

    @ApiModelProperty(value = "单选或多选答案 单选传id，多选传1,2")
    @TableField("option_id")
    private String optionId;

    @ApiModelProperty(value = "文本输入")
    @TableField("text_answer")
    private String textAnswer;

    @ApiModelProperty(value = "回答主表")
    @TableField("huida_id")
    private Long huidaId;


    @Override
    protected Serializable pkVal() {
        return this.id;
    }

}
